package com.framework.auth.mapper;

import com.framework.common.model.CommonDept;
import com.framework.common.model.CommonMenu;
import com.framework.common.model.CommonRole;
import com.framework.common.model.CommonUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface SysUserMapper {
    List<CommonMenu> listAuthority(String account);

    List<CommonRole> findRoleByUserId(String id);

    CommonUser findByAccount(String account);

    List<CommonDept> findUserDept(List<String> list);

    int exists(String userName);

    void updateLoginTime(String id);
}
